From 4a97d2608aaae9ff7711acf8f37ef45cdb349293 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 24 Oct 2023 18:13:12 -0700
Subject: fix(routes): remove old user route

---
 src/routes/@[user]/+page.svelte | 45 -----------------------------------------
 1 file changed, 45 deletions(-)
 delete mode 100644 src/routes/@[user]/+page.svelte

(limited to 'src/routes/@[user]/+page.svelte')

diff --git a/src/routes/@[user]/+page.svelte b/src/routes/@[user]/+page.svelte
deleted file mode 100644
index 1763193a..00000000
--- a/src/routes/@[user]/+page.svelte
+++ /dev/null
@@ -1,45 +0,0 @@
-<script lang="ts">
-	import { user, type User } from '$lib/AniList/user';
-	import { onMount } from 'svelte';
-
-	export let data;
-
-	let userData: User | undefined = undefined;
-
-	onMount(() => {
-		user(data.username).then((profile) => {
-			userData = profile;
-		});
-	});
-
-	// 8.5827814569536423841e0
-</script>
-
-{#if userData === null}
-	Could not load user profile for <a
-		href={`https://anilist.co/user/${data.username}`}
-		target="_blank">@{data.username}</a
-	>.
-
-	<p />
-
-	Does this user exist?
-{:else if userData === undefined}
-	Loading ...
-{:else}
-	<a href={`https://anilist.co/user/${userData.name}`} target="_blank" title={String(userData.id)}
-		>@{userData.name}</a
-	>
-
-	<p />
-
-	This user has watched {(userData.statistics.anime.minutesWatched / 60 / 24).toFixed(1)} days of anime
-	and read
-	{((userData.statistics.manga.chaptersRead * 8.58) / 60 / 24).toFixed(1)} days of manga.
-{/if}
-
-<p />
-
-<hr />
-
-This page is under construction!
-- 
cgit v1.2.3

